Skip to content

Bump Python to fix filelock vulnerability - #87

Merged
vmartinez-cu merged 1 commit into
lasp:mainfrom
vmartinez-cu:filelock-vulnerability
Nov 3, 2026
Merged

vmartinez-cu merged 1 commit into
lasp:mainfrom
vmartinez-cu:filelock-vulnerability

Conversation

@vmartinez-cu

@vmartinez-cu vmartinez-cu commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Change Summary

Dependabot identified vulnerabilities with filelock but wasn't able to automatically fix it since the filelock package was being resolved to an older version than the patched release. The lockfile had filelock 3.24.3, while the safer patched versions are 4.2.1+ and the current fixed release available in PyPI is 4.2.7.

Root cause
The project declared Python support as:

  • python = ">=3.10,<4"

This allowed the resolver to remain in the Python 3.10-compatible dependency set, which excludes the patched filelock release. The patched filelock versions require Python 3.11+. Older virtualenv and pre-commit dependency constraints were also part of this chain, so the resolver could not move to the patched package under the older Python minimum.

Fix

Updated the project metadata to require a newer Python version:

  • python = ">=3.11,<4"

Then regenerated the lockfile with Poetry, which updated the dependency tree to the patched versions:

  • filelock → 4.2.7
  • virtualenv → 21.15.2
  • pre-commit → 4.7.0
  • tomli and typing-extensions removed, since they were only needed on Python 3.10

Additional unrelated change:

  • added .DS_Store and /.DS_Store to .gitignore

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

@lasp/dev-guide-admins — this PR is ready for review.

@vmartinez-cu

Copy link
Copy Markdown
Collaborator Author

@mmaclay Do you know how to investigate a pre-commit.ci error? When I click on the failed check, it just takes me to a page that says there's an error but doesn't link to a log

@mmaclay

mmaclay commented Nov 3, 2026

Copy link
Copy Markdown
Member

@vmartinez-cu I think this might be due to the merge conflict on this PR. I will take a look at it.

@mmaclay

mmaclay commented Nov 3, 2026

Copy link
Copy Markdown
Member

@copilot resolve the merge conflicts in this pull request

@vmartinez-cu
vmartinez-cu force-pushed the filelock-vulnerability branch from 87d1023 to ff42f24 Compare November 3, 2026 16:42
@vmartinez-cu
vmartinez-cu merged commit 16a8bb6 into lasp:main Nov 3, 2026
12 of 15 checks passed
@vmartinez-cu
vmartinez-cu deleted the filelock-vulnerability branch November 3, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants